package server;

import com.pray.protocol.RpcRequest;
import com.pray.protocol.RpcResponse;
import com.pray.service.RpcService;
import com.pray.service.RpcServiceRequest;
import com.pray.service.RpcServiceResponse;

/**
 * RpcServiceImpl
 *
 * @author 春江花朝秋月夜
 * @since 2024/1/8 21:58
 */
public class RpcServiceImpl implements RpcService {

    /**
     * @param rpcRequest
     * @return
     */
    @Override
    public RpcServiceResponse response(RpcServiceRequest rpcRequest) {
        return new RpcServiceResponse("响应消息");
    }

    /**
     * @param rpcRequest
     * @return
     */
    @Override
    public RpcServiceRequest request(RpcServiceResponse rpcRequest) {
        return new RpcServiceRequest("请求消息");
    }
}
